<template>
    <div>
        <el-row class="line-text-title" type="flex" justify="middle">
            <span class="title-medium text-important">诊断信息</span>
        </el-row>
        <el-row class="line-text">
            <el-col :span="8">
                <span class="content-text">患者编号: {{ diagnosis.patientId }}</span>
            </el-col>
            <el-col :span="8">
                <span class="content-text">检查类型: {{ diagnosis.checkCategoryName }}</span>
            </el-col>
            <el-col :span="8">
                <span class="content-text">患者类别：{{ diagnosis.patientCategoryName }}</span>
            </el-col>
        </el-row>
        <el-row class="line-text-title" type="flex" justify="middle">
            <span class="title-medium text-important">患者信息</span>
        </el-row>
        <el-row class="line-text">
            <el-col :span="8">
                <span class="content-text">患者姓名: {{ diagnosis.name }}</span>
            </el-col>
            <el-col :span="8">
                <span class="content-text">性别: {{ diagnosis.sexName }}</span>
            </el-col>
            <el-col :span="8">
                <span class="content-text">年龄：{{ diagnosis.age }}</span>
            </el-col>
        </el-row>
        <el-row class="line-text">
            <el-col :span="8">
                <span class="content-text">身份证号: {{ diagnosis.cardId }}</span>
            </el-col>
            <el-col :span="8">
                <span class="content-text">病区名称: {{ diagnosis.wardName }}</span>
            </el-col>
            <el-col :span="8">
                <span class="content-text">床位号：{{ diagnosis.bedId }}</span>
            </el-col>
        </el-row>
        <el-row class="line-text-title" type="flex" justify="middle">
            <span class="title-medium text-important">病理信息</span>
        </el-row>
        <el-row class="line-text">
            <el-col :span="8">
                <span class="content-text">病理编号: {{ diagnosis.pathologyId }}</span>
            </el-col>
            <el-col :span="8">
                <span class="content-text">取材部位: {{ diagnosis.sampleBody }}</span>
            </el-col>
            <el-col :span="8">
                <span class="content-text">取材脏器：{{ diagnosis.sampleOrganName }}</span>
            </el-col>
        </el-row>
        <el-row class="line-text">
            <el-col :span="8">
                <span class="content-text">送检医生: {{ diagnosis.sendDoctor }}</span>
            </el-col>
            <el-col :span="8">
                <span class="content-text">送检科室: {{ diagnosis.sendDepartment }}</span>
            </el-col>
            <el-col :span="8">
                <span class="content-text">联系电话：{{ diagnosis.sendDoctorTel }}</span>
            </el-col>
        </el-row>
        <el-row class="line-text">
            <el-col :span="8">
                <span class="content-text">标本名称: {{ diagnosis.specimenName }}</span>
            </el-col>
            <el-col :span="8">
                <span class="content-text">标本类别: {{ diagnosis.specimenTypeName }}</span>
            </el-col>
            <el-col :span="8">
                <span class="content-text">标本登记时间：{{ diagnosis.specimenRegisterTime }}</span>
            </el-col>
        </el-row>
        <el-row class="line-text">
            <el-col :span="8">
                <span class="content-text">必须初诊: {{ diagnosis.needFirstVisitName }}</span>
            </el-col>
            <el-col :span="8">
                <span class="content-text">能否越级: {{ diagnosis.needSkipSubmitName }}</span>
            </el-col>
            <el-col :span="8">
                <span class="content-text">是否终审：{{ diagnosis.canFinalVerifyName }}</span>
            </el-col>
        </el-row>
    </div>
</template>

<script>
const baseInfoBase = {
  // 固有识别字段
  id: 0,
  pathologyId: '',

  patientId: '',
  checkCategory: 0,
  checkCategoryName: '',
  patientCategoryName: '',
  name: '',
  sexName: '',
  age: '',
  cardId: '',
  wardName: '',
  bedId: '',
  sampleBody: '',
  sampleOrganId: 0,
  sampleOrganOrgan: { name: '' },
  sampleOrganName: '',
  sendDoctor: '',
  sendDepartment: '',
  sendDoctorTel: '',
  specimenName: '',
  specimenTypeName: '',
  specimenTime: '',
  needFirstVisit: 0,
  needSkipSubmit: 0,
  canFinalVerify: 0,
};
export default {
  name: 'DiagnosisDetailBase',
  props: {
    diagnosis: {
      type: Object,
      default: baseInfoBase,
    },
  },
  computed: {
    needFirstVisitName() {
      return this.diagnosis.needFirstVisit === 1 ? '是' : '否';
    },
    needSkipSubmitName() {
      return this.diagnosis.needSkipSubmit === 1 ? '是' : '否';
    },
    canFinalVerifyName() {
      return this.diagnosis.canFinalVerify === 1 ? '是' : '否';
    },
  },
};
</script>

<style scoped>

</style>
